package com.ebeitech.doorapp.util.compat;

import android.annotation.TargetApi;
import android.os.Build;
import android.support.v4.app.Fragment;

/**
 * Created by alice on 16/9/11.
 */
public class FragmentCompatICSMR1 {

	@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1)
	public static void setUserVisibleHint(Fragment f, boolean isVisible) {
		if (f.getFragmentManager() != null) {
			f.setUserVisibleHint(isVisible);
		}
	}

}
